package com.zf.mapper;

import com.zf.pojo.person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface personMapper {
    List<person>  queryPersonList();

    @Options(useGeneratedKeys = true,keyProperty = "personId",keyColumn = "personId")
    int addPerson(person person1);
    int deletePerson(int id);
    person selectById(int id);
}
